package bb.lanxing.lib.devices.ble.ble.characteristic.light;

import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;

public enum LightType {
    Reserved0(0),
    Headlight(1),
    TailLight(2),
    ConfigurableSignalLight(3),
    LeftSignalLight(4),
    RightSignalLight(5),
    Reserved1(6),
    Other(7);
    
    public static final Companion Companion = new Companion(null);
    private final int raw;

    LightType(int i) {
        this.raw = i;
    }

    public final int getRaw() {
        return this.raw;
    }


    public static final class Companion {
        public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        private Companion() {
        }

        public LightType from(int i) {
            LightType[] values;
            for (LightType lightType : LightType.values()) {
                if (lightType.getRaw() == i) {
                    return lightType;
                }
            }
            return null;
        }
    }
}
